package com.yixin.hospital.entity.dto.req.purchaseorder;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("返库请求体")
@Data
public class GoDownCancelDrugReqDTO {

    @ApiModelProperty("药品列表")
    @NotNull(message = "药品列表不能为空")
    List<GoDownDrugBO> goDownDrugBOList;

    @Data
    public static class GoDownDrugBO{

        @ApiModelProperty("原库存")
        private Integer sourceNum;

        @ApiModelProperty("库存表id")
        private Long drugDepositoryDrugId;

        @ApiModelProperty("入库数量")
        private Integer num;


    }
}
